package org.example.mapper;

import org.mapstruct.Mapper;
import org.example.entity.dto.AddressDto;
import org.mapstruct.factory.Mappers;
import org.springframework.boot.autoconfigure.amqp.RabbitConnectionDetails;

@Mapper(componentModel = "spring")
public interface AddressMapper {

    AddressMapper INSTANCE = Mappers.getMapper(AddressMapper.class);

    AddressDto addressToAddressDto(RabbitConnectionDetails.Address address);

    RabbitConnectionDetails.Address addressDtoToAddress(AddressDto addressDto);
}